<template>
    <div class="list">
          <div v-for="item in goods" >
            <van-card  :price="item.goods_price"  :title="item.goods_name"
                :thumb="item.goods_small_logo?item.goods_small_logo:'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg'" />
        </div>
         <div v-for="item in goods" >
            <van-card  :price="item.goods_price"  :title="item.goods_name"
                :thumb="item.goods_small_logo?item.goods_small_logo:'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg'" />
        </div>


    </div>
</template>

<script setup>
import { ref } from 'vue';
import { goodsApi } from '@/api/api';
let goods = ref([])
goodsApi().then(res => {
    console.log('列表', res)
    goods.value = res.data.message.goods
})

</script>

<style lang="scss" scoped>
.list{
    column-count: 2;
    column-gap: 20px;
}


</style>